package com.qf.service.serviceImpl;

import com.qf.dao.PlayAndGameMapper;
import com.qf.pojo.BaseResp;
import com.qf.pojo.Game;
import com.qf.service.PlayAndGameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlayAndGameServiceImpl implements PlayAndGameService {
    @Autowired
    PlayAndGameMapper playAndGameMapper;
    public BaseResp GameType(Integer gid){
        BaseResp baseResp = new BaseResp();
        List<Game> games = playAndGameMapper.gameType(gid);
        baseResp.setCode(200);
        baseResp.setData(games);
        return baseResp;
    }
}
